package com.android.forecast.juhe;

public class URLUtils {
    public static final  String KEY = "63412646ddc99d500a19a700039acf8b";//天气API
    public static String temp_url = "http://apis.juhe.cn/simpleWeather/query";//访问温度连接

    public static String index_url = "http://apis.juhe.cn/simpleWeather/life";//访问生活指数连接
    public static String hourly_url="http://route.showapi.com/9-8";
    public static String appid="1608578";
    public static String sign="bc15b58223ef400684c6a092aa5db9cd";

    public static String getTemp_url(String city){//访问温度
        String url = temp_url+"?city="+city+"&key="+KEY;
        return url;
    }

    public static String getIndex_url(String city){
        String url = index_url+"?city="+city+"&key="+KEY;
        return url;
    }

    public static String getHourly_url(String city){
        String url=hourly_url+"?showapi_appid="+appid+"&area="+city+"&showapi_sign="+sign;
        return url;
    }
}
